package com.alander.nexusgo.im.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("im_group_message")
public class GroupMessage {
    
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 群组ID
     */
    @TableField("group_id")
    private Integer groupId;
    
    /**
     * 发送者ID
     */
    @TableField("sender_id")
    private Long senderId;
    
    /**
     * 消息ID
     */
    @TableField("message_id")
    private String messageId;
    
    /**
     * 消息内容
     */
    @TableField("content")
    private String content;
    
    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
}